Import Word Summary

Hi,

is there any library that allow me to import a word summary or word chapter structure?

thanks

Francesco


bungle_77 - Mon Jan 27 05:24:17 EST 2014

Re: Import Word Summary
Mathias Mamsch - Thu Jan 30 07:41:43 EST 2014

DOORS comes with a Word Plugin that allows you to transfer the contents of a word document to DOORS. We used this Word plugin in combination with a small VBA macro that extracts the chapter structure of a document to a new document.After creating the new document we imported it using the plugin.Of course you can also just copy paste the table of contents to a new document. Is this what you mean? Regards, Mathias

Re: Import Word Summary
bungle_77 - Thu Jan 30 08:49:24 EST 2014

Mathias Mamsch - Thu Jan 30 07:41:43 EST 2014

DOORS comes with a Word Plugin that allows you to transfer the contents of a word document to DOORS. We used this Word plugin in combination with a small VBA macro that extracts the chapter structure of a document to a new document.After creating the new document we imported it using the plugin.Of course you can also just copy paste the table of contents to a new document. Is this what you mean? Regards, Mathias

Maybe.

I need to synchronize a Doors module with word documents DB. An object for each document  and below my document object i need to import automatically the chapter structure.

If i understood right, i need to apply the VBA macro for each word documents (i don't know if i can do it) and for each object  with my dxl script i need

  1. Open the word document
  2. launch the vba macro
  3. wait untill the macro terminate
  4. open the temporary project
  5. import the chapter structure creating an object for each chapter.

I hoped there were a simple solution

 

Re: Import Word Summary
Mathias Mamsch - Thu Jan 30 10:39:29 EST 2014

Well it depends. The more automated it should be the less likely you are going to get a predefined solution.

What you described is one possibility. Another possibility would be to use COM automation to control word to open up the documents and extract the chapters using DXL. Another possibility would be to go from Word do all the chapter magic there using VBA, and create dynamically a DXL script to invoke to update the information and run it over COM or Batch (Or use another DOORS interface). I guess it is a question of personal comfort.

  • Extracting the chapter structure is more or less a "Search Loop" (with the heading style) in the Word Document
  • writing the chapter structure to DOORS is mainly mapping the heading number and document name to an object in DOORS
  • of course if you need updates / syncing you need to have some extra logic to create new objects first

I think it would make sense to keep the word part in word and the DXL part in DXL so I would create a DXL library that has a function for updating / creating those structure objects in DOORS, test it and then call it over COM from a Word Macro or from a VB-Script file (or if you need an unsupervised update over batch).

Regards, Mathias